package com.qf.springanno;

import com.qf.entity.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainApp {
    public static void main(String[] args) {
        //通过SpringConfig创建ioc容器
        ApplicationContext ioc = new AnnotationConfigApplicationContext(SpringConfig.class);

        Student bean = ioc.getBean(Student.class);
        System.out.println(bean);
    }
}
